//11：一商场普通顾客购物满100元打9折；会员购物打8折；会员购物满200元打7.5折。实现思路：
//1、外层判断是否是会员。2、内层判断是否达到相应打折要求
public class Task {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入是否会员:是y/n");
        String a=input.next();
        if (a.equals("y")) {
            System.out.println("请输入购物金额:");
            double money=input.nextDouble();
            if (money >= 200) {
                System.out.println("实际支付:"+0.75*money);
            }else {
                System.out.println("实际支付:"+0.8*money);
            }
        }else if (a.equals("n")){
            System.out.println("请输入购物金额:");
            double money=input.nextDouble();
            if (money >= 100) {
                System.out.println("实际支付:" + 0.9 * money);
            }else {
                System.out.println("实际支付:"+money);
            }
        }else {
            System.out.println("error");
        }
    }
}